package routers

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context/param"
)

func init() {

	beego.GlobalControllerRouter["luckapi/controllers:GameController"] = append(beego.GlobalControllerRouter["luckapi/controllers:GameController"],
		beego.ControllerComments{
			Method: "GameList",
			Router: `/gamelist`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["luckapi/controllers:GameController"] = append(beego.GlobalControllerRouter["luckapi/controllers:GameController"],
		beego.ControllerComments{
			Method: "JoinGame",
			Router: `/joingame`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["luckapi/controllers:TestController"] = append(beego.GlobalControllerRouter["luckapi/controllers:TestController"],
		beego.ControllerComments{
			Method: "Config",
			Router: `/testsql`,
			AllowHTTPMethods: []string{"post"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["luckapi/controllers:UserController"] = append(beego.GlobalControllerRouter["luckapi/controllers:UserController"],
		beego.ControllerComments{
			Method: "GameJoiner",
			Router: `/gamejoiner`,
			AllowHTTPMethods: []string{"post","get"},
			MethodParams: param.Make(),
			Params: nil})

	beego.GlobalControllerRouter["luckapi/controllers:UserController"] = append(beego.GlobalControllerRouter["luckapi/controllers:UserController"],
		beego.ControllerComments{
			Method: "UserInfo",
			Router: `/userinfo`,
			AllowHTTPMethods: []string{"post","get"},
			MethodParams: param.Make(),
			Params: nil})

}
